export function isNumber(obj) {
    return obj === +obj;
}
export function correctItemElementNumber(item, element, isfloat) {
    if (item && element) {
        if (typeof item[element] === "string") {
            item[element] = isfloat
                ? parseFloat(item[element])
                : parseInt(item[element]);
        }
        if (!isNumber(item[element])) {
            delete item[element];
            return;
        }
    }
}


export default {
    isNumber,
    correctItemElementNumber,
}